<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Geekopolis</title>
<script type="text/javascript" src="keyboard/vk_loader.js"></script>
<style>
body {
	font-family: verdana;
	padding: 0.2cm
}
</style>
<script type="text/javascript">
function additem() {
	
	var hint = document.getElementById("hint").value;
	if ( hint == "" ) hint = "---";
	var value = document.getElementById("english").value + "," + 
			document.getElementById("other").value + "," +
			hint;
	window.opener.addItemToPickList( value );
}
</script>
</head>
<?php
$language = $_GET["language"];
if ( $language == "Korean" ) {
	$layout = "VirtualKeyboard.switchLayout('KR','2 Beolsik')"; 
} else if ( $language == "French" ) {
	$layout = "VirtualKeyboard.switchLayout('FR','French')";
}
?>
<body onload="VirtualKeyboard.toggle('other','kb');<?php echo $layout?>;document.addf.english.focus();">
<form name="addf">
<table border="0">
<tr><td>English</td><td><?php echo $language?></td></tr>
<tr>
<td><input type="text" name="english" id="english"></td>
<td><input type="text" name="other" id="other" onfocus="VirtualKeyboard.attachInput(this)"></td>
</tr>
<tr>
<td colspan="2">Hint: <input type="text" size="50" name="hint" id="hint"></td>
</tr>
</table>
<div id="kb"></div>
<div style="text-align: right"><input type="button" value="Add" onclick="additem()"><input type="button" value="Close" onclick="window.close()"></div>
</form>
</body>
</html>